export const NOT_ON_SALE = {
    performanceStatus: 0,
    chineseName: "待开售",
    showType: "default"
}

export const ON_SALE = {
    performanceStatus: 1,
    chineseName: "热售中",
    showType: "error"
}

export const HALT_SALE = {
    performanceStatus: 2,
    chineseName: "已停售",
    showType: "default"
}
export const ON_THE_SHOW = {
    performanceStatus: 3,
    chineseName: "演出中",
    showType: "default"
}

export const FINISHED = {
    performanceStatus: 4,
    chineseName: "已结束",
    showType: "default"
}

export const CANCELED = {
    performanceStatus: 5,
    chineseName: "被取消",
    showType: "default"
}


export const PerformanceStatusList = [
    NOT_ON_SALE,
    ON_SALE,
    HALT_SALE,
    ON_THE_SHOW,
    FINISHED,
    CANCELED,
];

// 通过类型转换成一个对象
export function valueOf(performanceStatus) {
    return PerformanceStatusList[performanceStatus];
}